#ifndef FISIER_H
#define FISIER_H

#include <iostream>

class String{
		int length;
		char *sPtr;
		void setString(const char*);
	public:
		friend std::ostream& operator<<(std::ostream&,const String&);
		friend std::istream& operator>>(std::istream&,String&);
		friend std::ifstream& operator>>(std::ifstream&,String&);
		String(const char * = " ");
		~String();
		const String& operator=(const String&);
		bool operator!()const;
		bool operator==(const String &)const;
		bool operator<(const String&)const;
		bool operator>(const String& right)const;
		bool operator!=(const String& right)const;
		bool operator <=(const String& right)const;
		bool operator >=(const String& right)const;
		const String& operator +=(const String&);
		int getLength()const;
		friend void sortare();
};
class Fisier{
    String v[20];
  public:
    friend class String;
     void citire();
     void afisare();
     void sortare();
     void scriere();
};
#endif
